<div class="panel panel-success">
        <div class="panel-heading modal-header" align="center">  
            <h3 class="modal-title" id="updateModelLabel">添加菜品</h3>
        </div>
        <div class="modal-body">
                <div class="panel-body">
                            <form class="form-horizontal " id="addFoodForm" name="addFoodForm" novalidate>
                                <div class="form-group ">
                                    <label class="col-md-3 control-label">菜&nbsp; &nbsp; &nbsp;  &nbsp;名</label>
                                    <div class="col-md-8 ">
                                        <input type="text" id="foodName2" name="name" autocomplete="off" ng-model="newFood.name" required>
                                        <span style="color:red" ng-show="addFoodForm.name.$dirty && addFoodForm.name.$invalid">
                                                <span ng-show="addFoodForm.name.$error.required">亲，菜名是必须的填写的！</span>
                                        </span>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-md-3 control-label">类&nbsp; &nbsp; &nbsp;  &nbsp;型 </label>
                                    <div class="col-md-8">
                                        <select class="form-control" name="type" autocomplete="off" ng-model="newFood.type" ng-init="newFood.type='酒水'"required>
                                            <option value="酒水" selected = "selected">酒水</option>
                                            <option value="小吃">小吃</option>
                                            <option value="主食">主食</option>
                                            <option value="套餐">套餐</option>
                                    </select>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-md-3 control-label">价&nbsp; &nbsp; &nbsp;  &nbsp;格 </label>
                                    <div class="col-md-8">
                                        <input type="number" class="form-control" id="price" name="price" autocomplete="off" ng-model="newFood.price"required>
                                        <span style="color:red" ng-show="addFoodForm.price.$dirty && addFoodForm.price.$invalid">
                                                <span ng-show="addFoodForm.price.$error.required">亲，价格是必须填写的！</span>
                                        </span>
                                    </div>
                                </div>
                                <div class="form-group ">
                                    <label class="col-md-3 control-label">照&nbsp; &nbsp; &nbsp;  &nbsp;片 </label>
                                    <div class="col-md-8">
                                        <input type="file" name="image" id="updateImage" ng-model="newFood.image" data-container="body">
                                    </div>
                                </div>
                            </form>
                    </div>
        </div>  
        <div class="modal-footer panel-heading"> 
                <div class="col-md-offset-4 col-md-1 ">
                        <button class="btn btn-primary" ng-click="ok()">添加</button>
                    </div>
                    <div class="col-md-offset-2 col-md-1 ">
                            <button class="btn btn-warning" ng-click="cancel()">取消</button> 
                    </div>
                 
        </div>
</div>